CHECK FOR UNDERSTANDING: This loop will run once for each value in the list my_class.

The list value is student and one value from the list my_class each time the loop runs: first "Ken", then "Mark", "Sandy", and finally "Sabrina". The loop stops after the last value.

Each time the loop runs the current value of student is added to the string in_class using +=.

  • Click Run and watch the stage. Then use the code to answer the questions.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)